import antdLocale from 'ant-design-vue/es/locale/en_US';
import localeBase from './en_base';
import customLocale from './custom_en';
import { deepObjectMerge } from '@/core';
const locale = {
	...localeBase,
	antdLocale,
	// 通用组件
	common: {
		appsearch: {
			searchcontent: 'Search Content',
		},
		generic: {
			codelistwarn:
				'Code table value type and property type do not match, automatic cast exception, please correct code table value type and property type match',
			codenotexist: 'Code list does not exist',
			success: 'Success',
			error: 'Error',
			warn: 'Warning',
			noservice: 'Service does not exist',
			miss: 'Missing parameter ',
			requestexception: 'Request Exception！',
			loadfail: 'Failed to load data',
			codelistcast:
				'Code table value type and property type do not match, auto cast',
			codelistnoconfig: 'Code table not configured',
		},
		timeline: {
			index: 'serial',
			node: 'node',
			author: 'accepting officer',
			type: 'operation',
			lasttime: 'completion time',
			opinion: 'approval opinion',
			inhand: 'inhand:',
		},
		login: {
			userplaceholder: 'Please Enter Username',
			pwdplaceholder: 'Please Enter Password',
			login: 'Login',
			reset: 'Reset',
			other: 'Other Login Ways',
			dingding: 'DingDing Login',
			wxwork: 'WXWork Login',
			loginmsg: 'Please Enter Username And Password',
			notsupportdingding: 'DingTalk login is not currently supported',
			notsupportqywx: 'Currently does not support enterprise WeChat login',
		},
		fileupload: {
			uploadtext: 'Drag the file or click Upload',
			filetypeerrortitle: 'File type incorrect',
			filetypeerrorinfo:
				'Please select files with picture types，such as JPEG，GIF，PNG，BMP',
			notpdffiletype: 'Incorrect file type, please select PDF file type',
			downloaderror: 'Download failed!',
			caption: 'Upload',
			fileoutofsize: 'File Out of size， Maximum value is',
			filetypeerrorpleaseselect: 'File type incorrect, Please select:',
			draguploaderror: 'Do not drag upload',
		},
		datapicker: {
			error: 'Error',
			miss: 'Missing parameter ',
			requestexception: 'Request Exception！',
			newandedit: 'Create And Edit...',
			systemexception: 'System Error！',
			valueitemexception: 'Valueitem Error！',
			formdataexception: 'Formdata Error！',
			nosupport: 'The redirect view is not yet supported',
			nopickupview: 'The selection view is not configured',
			nolinkview: 'The link view is not configured',
		},
		datapickerview: {
			placeholder: 'Please select...',
		},
		datepicker: {
			placeholder: 'Please select time...',
		},
		dropdownlist: {
			placeholder: 'Please select...',
			valueerror: 'Drop down list, value conversion failed',
		},
		user: {
			name: 'System',
			lock: 'Application of lock screen',
			logout: 'Logout',
			theme: 'Topic Configuration',
		},
		theme: {
			title: 'Topic Configuration',
		},
		messagepopover: {
			loadmore: 'Load more',
			error: 'Error loading data',
			mytaskslabel: 'ToDo',
			mymsgslabel: 'Message',
			mynoticelabel: 'Notice',
			notificationlist: 'Notification list',
			messagelist: 'Message list',
		},
		tabpageexp: {
			more: 'More',
			closeall: 'Close All',
			closeother: 'Close Other',
		},
		groupselect: {
			groupselect: 'Group Select',
			confirmbuttontext: 'Determine',
			cancelbuttontext: 'Cancel',
		},
		aftertime: {
			minutesago: 'Minutes ago',
			hoursago: 'Hours ago',
			dayago: 'Days ago',
			monthsago: 'Months ago',
			yearsago: 'Years ago',
		},
		todolist: {
			caption: 'Caption',
			emptytext: 'No data was found',
			createtime: 'Creation Time',
			flow: 'Flow',
			state: 'State',
			error: 'Load data error',
			skiperror: 'Parameter is insufficient, the jump fails!',
		},
		exportexcel: {
			current: 'Export Current Page',
			all: 'Export All Pages',
		},
		input: {
			maxlength: 'The maximum content length is',
		},
		quicksearch: {
			placeholder: 'Enter search content',
		},
		processlog: {
			secondarydevtips: 'Tips for secondary development',
		},
		searchform: {
			shrink: 'shrink',
			more: 'more',
			reset: 'reset',
			search: 'search',
		},
		mappicker: {
			title: 'Please select an address',
			submit: 'Submit',
			address:
				'Tianfu Panda Pagoda, Sichuan TV Tower, Mengchuanwan Street, Chenghua District, Chengdu City, Sichuan Province',
			city: 'Chengdu',
			reset: 'Reset',
			searchaddresss: 'Address',
			searchtel: 'Tel',
		},
		customdropdownlist: {
			loadfail: 'Data loading failed',
			nourl: 'No data load path',
		},
		sheet: {
			notxlsxfiletype: 'File type error, please select xlsx type file!',
			importjson: 'Import file',
			exportjson: 'Export Json',
		},
	},
	// 预制功能视图
	function: {
		generic: {
			promptInformation:
				'Do you want to quit the system? Do you want to continue?',
			prompt: 'Prompt',
			loginerror: 'Incorrect login name or password!',
		},
		lockscren: {
			label: 'Set the password lock screen',
			message: 'The lock screen password cannot be empty',
			placeholder: 'Please enter the lock screen password',
			placeholder1: 'Please enter your login password',
			message1: 'The unlock password is wrong. Please reenter it',
			confirmbuttontext: 'Determine',
			cancelbuttontext: 'Cancel',
			lock: 'Application of lock screen',
		},
		'404': {
			errortext1: 'Sorry，the page you visited is not exist！',
			errortext2: 'The page you visited is not exist，please return to',
			indexpage: 'Home page',
			continue: 'To continue browsing',
		},
		'401': {
			errortext1:
				'sorry, you currently do not have permission to access the page you are visiting!',
			errortext2:
				'The current page currently does not have permission，please return to',
			previouspage: 'Previous page',
			continue: 'to continue browsing',
		},
		'500': {
			errortext1: "Sorry，there's something wrong with the server！",
			errortext2: "There's something wrong with the server，please return to",
			indexpage: 'Home page',
			continue: 'To continue browsing',
		},
		dataimport: {
			selectfile: 'Click this area to upload',
			uploadserver: 'Upload Server',
			datatemplate: 'Import Data Template',
			datatemplatemessage:
				'Download the Import Data Template, According to the specification required to fill in',
			read: ' Read Successful',
			completed: 'Import Completed',
			confirm: 'OK',
			cancel: 'Cancel',
			nowupload: 'Currently transferred',
			toolarge:
				'If the file is too large, you can close the current view and check the progress in the system message center.',
			notservice: 'Entity service is not configured',
		},
		homepage: {
			welcome: 'Welcome To Use',
			promptmessage: 'Please click the menu to enter each function page',
		},
		exportexcel: {
			valueruleerror:
				'Specify that the export end page must be greater than or equal to the start page!',
		},
	},
	// 布局组件
	layoutElement: {
		login: {
			loginfailed: 'Login failed',
			authfailed: 'Authentication failed',
			phoneplaceholder: 'Please enter your mobile phone number',
			phonefailed: 'The phone number is incorrect',
			codeplaceholder: 'Please enter the verification code',
			getcode: 'Get verification code',
			getcodeafter: 'Get verification code after',
			entervercode: 'Please enter the verification code',
			phoneerror: 'The format of the phone number is incorrect',
		},
		text: {
			markdownnotsupport: 'MARKDOWN Not supported temporarily',
		},
	},
	// 应用
	app: {
		warn: {
			nofind: 'No relevant data could be found',
		},
		error: {
			unknownerror: 'An unknown error occurred!',
			implementlogicerror:
				'The current environment cannot execute the data creation logic [abnormal execution behavior]',
			deletelogicerror:
				'The current environment cannot execute data deletion logic [abnormal execution behavior]',
			savelogicerror:
				'The current environment cannot execute the data saving logic [abnormal execution behavior]',
			cripterror: 'Failed to compute script code:',
		},
		common: {
			confirm: 'OK',
			cancel: 'Cancel',
			nofindredirected: 'Redirected view not found',
			noconfigmainview: 'Master Data View is not configured',
			noeditview: 'Edit view does not exist',
			noconfignewview: 'New Data View is not configured',
			nonewview: 'New view does not exist',
			newlybuild: 'Newly Build',
			closehinttitle: 'Close prompt',
			closehintcontent:
				'Data has been modified. Are you sure you want to close it?',
			selectversioning: 'Select process version',
		},
		notificationtitle: {
			error: 'Error',
			success: 'Success',
			warn: 'Warning',
		},
		util: {
			errorvalue: 'Content must conform to value rules',
			errorlength: 'The content length must conform to the scope rule',
			errorempty: 'Value is empty',
			errorregular: 'Value must conform to regular rules',
			errorscriptcode: 'Value must conform to script rules',
			errorvaluerange: 'Value must conform to the value range rule',
			maxvalue: 'The maximum content value must be',
			minvalue: 'Content minimum value must be',
			maxlength: 'Max Length',
			minlength: 'Min Lnegth',
			currentlength: 'Current Length',
			valueprecision: 'Content precision must be',
		},
		helper: {
			noview: 'No related views found',
			notopenview: 'No open view for application function',
			openhtmlerror: 'Failed to open html view in mode!',
		},
	},
	// 视图
	view: {},
	// 部件
	widget: {
		common: {
			nofindview: 'No related views found',
			warn: 'Waring',
			error: 'Error',
			success: 'Success',
			confirmtodelete: 'Confirm to delete',
			delnotberecoverable: 'The deletion will not be recoverable',
		},
		menu: {
			noconfigmenu: 'The menu is not configured with application functions',
		},
		md: {
			notconfig: {
				fetchaction: 'The fetchaction parameter is not configured',
				removeaction: 'The removeaction parameter is not configured',
				createaction: 'The createaction parameter is not configured',
				updateaction: 'The updateaction parameter is not configured',
				loaddraftaction: 'The loadtrafaction parameter is not configured',
				ctrlnotconfig: 'Multi data part is not configured',
			},
			other: 'Other',
		},
		editform: {
			notconfig: {
				loadaction: 'The loadAction parameter is not configured',
				loaddraftaction: 'The loadDraftAction parameter is not configured',
				updateaction: 'The updateAction parameter is not configured',
				createaction: 'The createAction parameter is not configured',
				removeaction: 'The removeAction parameter is not configured',
			},
			workflow: {
				submitsuccess: 'Submit Success',
				submitfailure: 'Submit Failure',
				startsuccess: 'Start Success',
				startfailure: 'Start Failure',
			},
			savesuccess: 'Save Success',
			savefailure: 'Save Failure',
			removesuccess: 'Remove Success',
			removefailure: 'Remove Failure',
			formvalidate: 'Form Validate Failure',
			formdruipart: 'Please save the master data first',
			hiddenfields: 'Hidden fields',
			showfilelds: 'Show fields',
			scriptcodecheckerror: 'Script code verification error',
			mandatory: 'Mandatory',
			valueruleabnormal: 'Value rule exception',
		},
		chart: {
			customparamerror: 'The custom parameter format is incorrect',
			nogroupfield: 'No grouping properties',
			undefined: 'Undefined',
			quarter: 'Quarter',
			year: 'Year',
			noindicator: 'Indicator does not exist. Cannot convert data set!',
		},
		calendar: {
			today: 'today',
			month: 'month',
			week: 'week',
			day: 'day',
			list: 'list',
			allday: 'All Day',
		},
		wizardpanel: {
			finish: 'Finish',
			prev: 'Last Step',
			next: 'Next Step',
		},
		multieditviewpanel: {
			add: 'Add',
		},
		grid: {
			show: 'Show',
			piece: 'piece of data',
			total: 'Total',
			page: 'Piece / Page',
			mandatory: 'Mandatory',
			totalvalue: 'Total Value',
			averagevalue: 'Average Value',
			maxvalue: 'Max Value',
			minvalue: 'Min Value',
			notconfigaggregation:
				'No aggregation entity or aggregation behavior configured',
			editupdatefail: 'Table edit item update failed',
			ruleverifyerror: 'Value rule verification error',
			notconfignewaction: 'New behavior is not configured',
			notconfigupdateaction: 'Update behavior is not configured',
			notconfigdelaction: 'Delete behavior is not configured',
			successmsg: 'Saving succeeded',
			failmsg: 'Save failed',
			check: 'Checked',
			deletefail: 'Delete Fail',
			deletesuccess: 'Delete Success',
			pleaseconfigdataimport: 'Please configure the data import item',
			dataimport: 'Import Data',
			gridvaluerulevarifyerror: 'Table value rule verification error',
		},
		dataview: {
			other: 'Other',
			nodeleteaction: 'Delete behavior is not configured',
			piece: 'piece of data',
			total: 'Total',
			check: 'Checked',
			deletefail: 'Delete Fail',
			deletesuccess: 'Delete Success',
			loadmore: 'Load More',
			nodata: 'No Data',
		},
		kanban: {
			notconfig: {
				notconfigsaveaction: 'Save behavior is not configured',
				notconfigdeleteaction: 'Delete behavior is not configured',
			},
			piece: 'piece of data',
			total: 'Total',
			check: 'Checked',
			deletefail: 'Delete Fail',
			deletesuccess: 'Delete Success',
			nodata: 'No Data',
		},
		list: {
			other: 'Other',
			notconfig: {
				notconfigsaveaction: 'Save behavior is not configured',
				notconfigdeleteaction: 'Delete behavior is not configured',
			},
			piece: 'piece of data',
			total: 'Total',
			check: 'Checked',
			deletefail: 'Delete Fail',
			deletesuccess: 'Delete Success',
			loadmore: 'Load More',
			nodata: 'No Data',
		},
		multiedit: {
			draftnew: 'Draft - New',
		},
		panel: {
			notconfigfetch: 'Loading behavior is not configured',
		},
	},
};
if (customLocale) {
	deepObjectMerge(locale, customLocale);
}
export default locale;
